Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mention of config SO types from SO.create API docs. #168538

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

lukeelmers
Copy link
Member

@lukeelmers lukeelmers commented Oct 10, 2023

In our docs for the saved objects create http APIs, we mention config as a supported SO type. While technically possible to create a config SO via the API, I don't think it is advisable because Kibana generates these automatically. I think it is fine if someone wants to edit/update an existing config object, but I wonder if we should exclude mention of it for the create endpoints specifically?

@lukeelmers lukeelmers added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:skip Skip the PR/issue when compiling release notes docs backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Oct 10, 2023
@lukeelmers lukeelmers self-assigned this Oct 10, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@lukeelmers lukeelmers requested a review from a team October 10, 2023 22:47
@github-actions
Copy link
Contributor

Documentation preview:

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the PR description comment that these configuration objects are created automatically.

Even though it's possible to create a new one using the API directly, or even copying an existing document and editing it, these "custom" docs often cause more issues than what they're worth. Only users who know what they're doing should be creating these on the fly, although even then I wouldn't recommended.

Configuration is an onion: there are many layers to it, some settings are declared by apps, others by services and then we also have global config! It's hard to keep track of how all of these compile and what overrides what.

This PR is a step in the right direction: we shouldn't mention config, since users don't need to create one for Kibana to work and we don't recommend they do so anyway.

LGTM!

@lukeelmers lukeelmers merged commit 6df50ea into elastic:main Oct 17, 2023
10 checks passed
@lukeelmers lukeelmers deleted the fix/so-docs branch October 17, 2023 15:40
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2023
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.11

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 17, 2023
…68538) (#169130)

# Backport

This will backport the following commits from `main` to `8.11`:
- [Remove mention of config SO types from SO.create API docs.
(#168538)](#168538)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Luke
Elmers","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-17T15:40:49Z","message":"Remove
mention of config SO types from SO.create API docs.
(#168538)","sha":"6df50ea66679478288ec67150c9ed5aab8b8e637","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","docs","backport:prev-minor","v8.12.0"],"number":168538,"url":"https://github.com/elastic/kibana/pull/168538","mergeCommit":{"message":"Remove
mention of config SO types from SO.create API docs.
(#168538)","sha":"6df50ea66679478288ec67150c9ed5aab8b8e637"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168538","number":168538,"mergeCommit":{"message":"Remove
mention of config SO types from SO.create API docs.
(#168538)","sha":"6df50ea66679478288ec67150c9ed5aab8b8e637"}}]}]
BACKPORT-->

Co-authored-by: Luke Elmers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) docs release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.11.0 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants